home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / t / odbc.test < prev    next >
Encoding:
Text File  |  2003-01-21  |  420 b   |  18 lines  |  [TEXT/ttxt]

  1. #
  2. # Test some ODBC compatibility
  3. #
  4.  
  5. select {fn length("hello")}, { date "1997-10-20" };
  6.  
  7. #
  8. # Test retreiving row with last insert_id value.
  9. #
  10.  
  11. create table t1 (a int not null auto_increment,b int not null,primary key (a,b));
  12. insert into t1 SET A=NULL,B=1;
  13. insert into t1 SET a=null,b=2;
  14. select * from t1 where a is null and b=2;
  15. select * from t1 where a is null;
  16. explain select * from t1 where b is null;
  17. drop table t1;
  18.